<div class="page-title">
	<h1>文章列表</h1>
</div>


<div class="row">
	<div class="col-lg-12">
		<div class="widget-container">
	<?php
	$this->widget('bootstrap.widgets.TbGridView', array(
			'id'=>'grid',
			'dataProvider' => $dataProvider,
			'filter'=>$model,
			'pagerCssClass'=>'pagination pull-right',
			'columns'=>array(
				array(
						'name'=>"id"
				),
				array(
					'type' => 'raw',
					'name'=>"title",
					'value'=>'$data -> titleLink'
					),
				array(
						'name'=>'author_id',
						),
				array(
					'type' => 'raw',
					'name' => 'tags',
					'value' => 'implode(",",$data->tagLinks)',
					),
				array(
					'name' => 'create_time',
					'value'=>'date("Y-m-d H:i:s",$data -> create_time)'
					),
				array(
					'class'=>'CButtonColumn',
					'header'=>'操作',
					'template' => '{view}{delete}',
					),
				),
		)); 
?>
	</div>
	</div>
</div>